﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BO;
using DAO;
using System.Data;

namespace BL
{
    public class B_Livestock
    {
        D_Livestock dal = new D_Livestock();
        public static B_Livestock CreateInstance()
        {
            return new B_Livestock();
        }
        public bool CreateOneLivestock(Livestock_Info Livestock_Info)
        {

            return dal.CreateOneLivestock(Livestock_Info);
        }
        public bool EditOneLivestock(Livestock_Info Livestock_Info)
        {

            return dal.EditOneLivestock(Livestock_Info);
        }
        public bool RemoveOneLivestock(int LivestockID)
        {

            return dal.RemoveOneLivestock(LivestockID);
        }
        public DataTable GetAllLivestock()
        {
            
            return dal.GetAllLivestock();
        }
        public Livestock_Info GetOneLivestock(int LivestockID)
        {
            
            return dal.GetOneLivestock(LivestockID);
        }
        public DataTable GetAllLivestockByLivestockType(int livestockTypeID)
        {

            return dal.GetAllLivestockByLivestockType(livestockTypeID);
        }
    }
}
